<template>
	<view class="content">
		<view class="title">
			<i class="iconfont iconwenti icon-css-content"></i>
			<text>{{data.question_text}}</text>
		</view>
		<view class="answer">
			{{data.answer}}
		</view>
		<view class="tishi">是否已经解决了您的问题</view>
		<view class="btn_yes" @click="btn_yes">解决了</view>
		<navigator hover-class="false" class="btn_not" url="sub-setting/feedback">没有，前往反馈</navigator>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				data:''
			}
		},
		onLoad:function(e){
			this.data=JSON.parse(decodeURIComponent(e.data));
			
		},
		methods: {
			btn_yes:function(){
				var token=uni.getStorageSync('token');
				this.$gapi.apiPost('user/help/change',{k_token:token,help_id:this.data.help_id}).then(res=>{
					if(res.data.code==200){
						uni.navigateBack({
							delta: 1
						});
					}
				});
			}
		},
	}
</script>

<style>
	.content {
		position: absolute;
		width: 100%;
		height: 100%;
	}

	.title {

		height: 80upx;
		width: 92%;
		margin: auto;
		margin-top: 20upx;
		display: flex;
		justify-content: flex-start;
	}

	.title text {
		font-size: 36upx;
		color: #333333;
		line-height: 80upx;
		margin-left: 12upx;
	}

	.icon-css-content {
		height: 80upx;
		line-height: 80upx;
		font-size: 52upx;
		color: #00D5A2;
	}
	.answer{
		width: 92%;
		margin: auto;
		margin-top: 20upx;
		font-size:34upx;
		color: #666666;
		padding-bottom: 30upx;
		border-bottom:1px dashed rgba(112,112,112,0.8);
	}
	.tishi{
		color: #999999;
		font-size: 28upx;
		width: 92%;
		margin: auto;
		margin-top: 10upx;
	}
	.btn_yes{
		margin: auto;
		margin-top: 25upx;
		width:92%;
		height: 74upx;
		background:rgba(0,213,162,1);
		color: #FFFFFF;
		font-size: 34upx;
		text-align: center;
		line-height: 74upx;
	}
	.btn_not{
		margin: auto;
		margin-top: 20upx;
		width: 92%;
		height: 74upx;
		background:rgba(0,172,254,1);
		color: #FFFFFF;
		font-size: 34upx;
		text-align: center;
		line-height: 74upx;
	}
	
</style>
